﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ucReport_Purchase.ascx.cs"
    Inherits="Admin_UserControl_ucReport_Purchase" %>
<style>
    .re_purchase
    {
        width: 900px;
        margin: 0 auto;
        min-height: 900px;
        overflow:hidden;
    }
    table
    {
        width: 100%;
    }
    .table_t1
    {
        margin-top: 20px;
    }
    .list_table
    {
        border-collapse: collapse;
        margin-top: 20px;
    }
    .list_table td
    {
        border: 1px solid #ccc;
    }
    .table_t1 td
    {
    	padding:5px 10px 5px 0;
 
    }
    .table_t1 td input
    {
        border:none;
        background:#fff;
        text-align:center;
        height: 20px;
        width: 200px;
        font-size:15px;
    }
    .table_t1 .text
    {
    	font-weight:bold;
    	text-align:left;
    }
    .table_t1 .text1 input
    {
    	border: 1px solid #000000;
    	background:#fff;
    	text-align: center;
    	
    }
    body
    {
        font-size: 15px;
        font-family: Arial;
    }
    .td_gid
    {
    	border:2px solid #000000;    	
    	min-height:650px;
    }
    .td_gid table
    {
    	border-collapse:collapse;
    }
    .grdHeader th
    {
    	border-top:none;
    	border-bottom:2px solid #000000;
    }
    .text3
    {
    	border:2px solid #000000;
    	border-top:none;
    	width:120px;
    	height:22px;
    	text-align:right;
    	padding:0;
    	margin-top:-2px;
    }
    .butom p
    {
    	text-align:center;
    	padding:0;
    	margin:0;
    	font-style:italic;
    }
    .clear
    {
    	clear:both;
    }
</style>
<div class="re_purchase">
    <table>
        <tr>
            <td>
                <img style="margin-top: 10px;" src="image/logo_rep.png" alt="logo" />
            </td>
            <td style="font-size: 25px; font-style: italic; text-align: right; padding-top: 8px">
                TAX INVOICE
            </td>
        </tr>
        <tr>
            <td style="font-size: 25px; font-style: italic;">
                MPR Express
            </td>
            <td style="font-size: 25px; font-style: italic; text-align: right;">
                ACN 150 076 323
            </td>
        </tr>
        <tr>
            <td style="font-size: 20px;">
                Shop 1016A WESTFIELD SHOPPING CENTRE<br />
                HORNSBY NSW 2077
            </td>
            <td style="text-align: right; float: right; font-size: 20px;">
                <table>
                    <tr>
                        <td style="width: 120px; float: left; text-align: left;">
                            Invoice No.
                        </td>
                        <td style="float: right; width: 120px; text-align: right;">
                            <asp:Label ID="lbcustomerID" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 120px; float: left;text-align: left;">
                            Invoice Date
                        </td>
                        <td style="float: right; width: 120px; text-align: right;">
                            <asp:Label ID="lbDateInvoice" runat="server"></asp:Label>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td style="font-size: 20px;">
                Phone: 02 9476 6305 Fax: 02 9476 6791
            </td>
            <td>
            </td>
        </tr>
    </table>
    <table class="table_t1">
        <tr>
            <td class="text" style="width: 120px;">
                OrderID
            </td>
            <td>
                <asp:TextBox ID="txtIDOrder" runat="server" ></asp:TextBox>
            </td>
            <td class="text" style="width: 120px; text-align:right;">
               Sales Rep:
            </td>
            <td class="text1" align="right" style="text-align:right; padding-right:0;">
                <asp:TextBox ID="txtSales" runat="server" Width="120px" ></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="text" style="width: 120px;">
                Customer Name
            </td>
            <td>
                <asp:TextBox ID="txtName" runat="server"></asp:TextBox>
            </td>
            <td colspan="2"></td>
        </tr>
        <tr>
            <td class="text" style="width: 120px;">
                Company Name
            </td>
            <td>
               <asp:TextBox ID="txtCompany" runat="server"></asp:TextBox>
            </td>
            <td colspan="2"></td>
        </tr>
        <tr>
            <td class="text" style="width: 120px;">
                Contact No
            </td>
            <td >
                <asp:TextBox ID="txtContactNo" runat="server" ></asp:TextBox>
            </td>
            <td colspan="2"></td>
        </tr>
        <tr>
            <td colspan="4" style="padding-top:20px; padding-right:0;">
            <div  class="td_gid">
                <asp:GridView ID="grdOrder" runat="server" AutoGenerateColumns="False" CellPadding="10"
                    CssClass="grd" Width="100%">
                    <Columns>
                        <asp:TemplateField HeaderText="ItemNo" HeaderStyle-HorizontalAlign="Center">
                            <ItemTemplate>
                                <%# Eval("IDBookingDetail")%>
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                            <ItemStyle HorizontalAlign="Center" Wrap="True" Font-Bold="true" Width="60px"></ItemStyle>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Description" HeaderStyle-HorizontalAlign="Center">
                            <ItemTemplate>
                                <%# Eval("ProductName")%></ItemTemplate>
                            <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                            <ItemStyle HorizontalAlign="Center" Wrap="True" Font-Bold="true" Width="305px"></ItemStyle>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Quantity" HeaderStyle-HorizontalAlign="Center">
                            <ItemTemplate>
                                <%# Eval("Quantity")%>
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                            <ItemStyle HorizontalAlign="Center" Width="50px" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Unit Price" HeaderStyle-HorizontalAlign="Center">
                            <ItemTemplate>
                                <%# double.Parse(Eval("UnitPrice").ToString()).ToString("c")%>
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                            <ItemStyle Width="100" VerticalAlign="Middle" HorizontalAlign="Center" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Extended Price" HeaderStyle-HorizontalAlign="Center">
                            <ItemTemplate>
                                <%# (double.Parse(Eval("Quantity").ToString()) * double.Parse(Eval("UnitPrice").ToString())).ToString("c")%>
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                            <ItemStyle Width="140" VerticalAlign="Middle" HorizontalAlign="Center" />
                        </asp:TemplateField>
                       
                    </Columns>
                    <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                    <HeaderStyle CssClass="grdHeader" />
                    <EditRowStyle BackColor="#2461BF" />
                    <AlternatingRowStyle CssClass="grdAlternateRow" />
                    <RowStyle CssClass="grdRow" />
                </asp:GridView>
                </div>
            </td>
        </tr>
    </table>
    <table style="width: 300px; float: right; margin-top: -8px;">
        <tr>
            <td style="width: 120px; float: left; font-weight: bold; text-align: right;">
                Total Amount:
            </td>
            <td class="text3" style="float: right; width: 150px; ">
                <asp:Label ID="lbTotalAmount" runat="server" Text="Total Amount"></asp:Label>
            </td>
        </tr>
        <tr>
            <td style="width: 120px; float: left; font-style: italic; font-weight: bold; text-align: right;">
                GST inclusive
            </td>
            <td class="text3"  style="float: right; width: 150px; ">
                <asp:Label ID="lbdiscount" runat="server" Text="GST inclusive"></asp:Label>
            </td>
        </tr>
    </table>
    
</div>

<div class="butom" style="width: 900px; margin:0 auto; margin-bottom: 10px; overflow: hidden;">
<div style="float:left; width:100%; margin-top:70px;">
    <p>
        We stock a wide range of accessories from generic to original.
    </p>
    <p style="margin-bottom:20px;">IF we dont have it in stock we can still order them in. Please dont hesitate to ask one of our friendly staff.</p>
    <p>Thankyou for shopping at MPR Express Hornsby. Hope to see you again soon.</p>
    <p style="margin-bottom:30px;">Please retain your receipt for warranty purposes. 3 months standard warranty on batteries, chargers.</p></div>
</div>
